/**
 * 
 */
package com.arx.script.flyweight;

/**
 * @author Donald
 */
public final class LabelInfo {
	private long	idx;
	private String	string;
	/**
	 * Determines if the label has a string component.
	 * @return true if the label has a string component; false otherwise
	 */
	public boolean hasString() {
		boolean has = false;
		if (string != null && string.length() > 0) {
			has = true;
		}
		return has;
	}
	/**
	 * Sets the string component for the label.
	 * @param val the string to be set
	 */
	public void setString(final String val) {
		string = val;
	}
}
